package cn.edu.ctbu.scoremg.dao;

import cn.edu.ctbu.scoremg.entity.Course;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface CourseRepository extends JpaRepository<Course, String> {

    List<Course> findByNameLike(String name);

    List<Course> findByTno(String tno);

    Course findByCode(String code);

    List<Course> findByCodeAndTno(String code, String tno);
}